package com.kotlin.flong.coroutines

import kotlinx.coroutines.*

/**
 * @Author:liangjl
 * @Date: 2020/7/7-16:20
 * @Eamil:jilongliang@sina.com
 * @Description:
 */
fun main() = runBlocking {
    val  job = GlobalScope.launch {
        withTimeout(2000){
            (1..10).forEach {
                println("ӡ${it}")
                delay(500)
            }
        }
    }

    job.join()


}